/**
 * @description：请求配置
 */
export enum ResultEnum {
  SUCCESS = 200,
  ERROR = 500,
  OVERDUE = 401,
  TIMEOUT = 30000,
  TYPE = "success"
}

/**
 * @description：请求方法
 */
export enum RequestEnum {
  GET = "GET",
  POST = "POST",
  PATCH = "PATCH",
  PUT = "PUT",
  DELETE = "DELETE"
}

/**
 * @description：常用的 contentTyp 类型
 */
export enum ContentTypeEnum {
  // json
  JSON = "application/json;charset=UTF-8",
  // text
  TEXT = "text/plain;charset=UTF-8",
  // form-data 一般配合qs
  FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
  // form-data 上传
  FORM_DATA = "multipart/form-data;charset=UTF-8"
}

export const statusEnum = [
  {
    statusLabel: "全部",
    statusValue: null
  },
  {
    statusLabel: "禁用",
    statusValue: 0
  },
  {
    statusLabel: "正常",
    statusValue: 1
  },
  {
    statusLabel: "删除",
    statusValue: -1
  }
];

export const statusFieldNames = { label: "statusLabel", value: "statusValue" };

export const genderEnum = [
  {
    genderLabel: "男",
    genderValue: 1
  },
  {
    genderLabel: "女",
    genderValue: 2
  },
  {
    genderLabel: "未定义",
    genderValue: 3
  }
];

export const genderFieldNames = { label: "genderLabel", value: "genderValue" };

export const orderStatusEnum = [
  {
    statusLabel: "已创建",
    statusValue: 0
  },
  {
    statusLabel: "已提交",
    statusValue: 1
  },
  {
    statusLabel: "已审核",
    statusValue: 2
  },
  {
    statusLabel: "已完成",
    statusValue: 3
  },
  {
    statusLabel: "已作废",
    statusValue: -1
  }
];

export const orderDetailPreviewStatusEnum = [
  {
    statusLabel: "待审核",
    statusValue: 0
  },
  {
    statusLabel: "审核通过",
    statusValue: 1
  },
  {
    statusLabel: "审核拒绝",
    statusValue: 2
  }
];

export const customerProjectStatusEnum = [
  {
    statusLabel: "已创建",
    statusValue: 0
  },
  {
    statusLabel: "待审核",
    statusValue: 1
  },
  {
    statusLabel: "已审核",
    statusValue: 2
  },
  {
    statusLabel: "已完成",
    statusValue: 3
  },
  {
    statusLabel: "审核拒绝",
    statusValue: 11
  },
  {
    statusLabel: "已作废",
    statusValue: -1
  }
];

export const projectRecordStatusEnum = [
  {
    statusLabel: "已创建",
    statusValue: 0
  },
  {
    statusLabel: "已提交",
    statusValue: 1
  },
  {
    statusLabel: "已完成",
    statusValue: 3
  },
  {
    statusLabel: "已作废",
    statusValue: -1
  }
];

export const projectRecordTypeEnum = [
  {
    statusLabel: "普通",
    statusValue: 1
  },
  {
    statusLabel: "重要",
    statusValue: 2
  }
];

export const publishTypeEnum = [
  {
    statusLabel: "文章",
    statusValue: 1
  },
  {
    statusLabel: "视频",
    statusValue: 2
  }
];

export const publishStateEnum = [
  {
    statusLabel: "待发布",
    statusValue: 0
  },
  {
    statusLabel: "已发布",
    statusValue: 1
  },
  {
    statusLabel: "发布失败",
    statusValue: -1
  }
];
